package com.stylefeng.guns.modular.vpn.service;

import com.stylefeng.guns.core.common.constant.DatasourceEnum;
import com.stylefeng.guns.core.mutidatasource.annotion.DataSource;
import com.stylefeng.guns.modular.system.dao.VpnFilterMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description 条件类别服务
 * @Author Mr.GodRui
 * @Date 2020-04-03 20:26
 **/
@Service
public class FilterService {

    @Autowired
    private VpnFilterMapper vpnFilterMapper;

    @DataSource(name = DatasourceEnum.DATA_SOURCE_BIZ)
    public List<Map<String,Object>> queryPackageList(){
        return vpnFilterMapper.queryPackageList();
    }

    @DataSource(name = DatasourceEnum.DATA_SOURCE_BIZ)
    public List<Map<String,Object>> queryPaymentTypeList(){
        return vpnFilterMapper.queryPaymentTypeList();
    }
}
